﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace FasterWPF
{
    public class Caster
    {
        public Caster()
        { }

        public static T CastIt<T>(object o)
        {
            return (T)o;
        }

        public MethodInfo GetGenericMethod(Type t)
        {
           return this.GetType().GetMethod("CastIt").MakeGenericMethod(t);
        }
    }
}
